/**
 * 
 */
package bai8.com.command;

/**
 * @author nglehien Oct 23, 2012 - 9:55:45 AM
 */
public class MessageFactory {
	public static final int QUIT = -1;
	public static final int RETURN = 0;
	public static final int UPPER = 1;
	public static final int LOWER = 2;
	public static final int INSERT = 3;
	public static final int DELETE = 4;

	public static Message createQuitCommand() {
		return new Message(QUIT);
	}

	public static Message createOutput(String data) {
		return new Message(RETURN, data);
	}

	public static Message createUpperCommand(String data) {
		return new Message(UPPER, data);
	}

	public static Message createLowerCommand(String data) {
		return new Message(LOWER, data);
	}

	public static Message createInsertCommand(String input, int position,
			String data) {
		return new Message(INSERT, input, position, data);
	}

	public static Message createDeleteCommand(String input, String delete) {
		return new Message(DELETE, input, delete);
	}
}
